package com.maxsalad.pospal.entity.order.add;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * Created by 2014-400 on 2016-03-07.
 */
public class RequestOrderEntity implements Serializable {
    /**
     * Pospal配置的访问凭证
     */
    private String appId;
    /**
     * 两种支付方式二选一：
     * Cash,表示现金支付；
     * CustomerBalance,表示用会员余额支付,接口会根据customerNumber去扣除对应会员的余额
     */
    private String payMethod;
    /**
     * 会员号，订单是哪个会员下的。如果payMethod= CustomerBalance，参数customerNumber不能为空
     */
    private String customerNumber;
    /**
     * 运费
     */
    private BigDecimal shippingFee;
    /**
     * 订单备注
     */
    private String orderRemark;
    /**
     * 订单产生的时间，格式为yyyy-MM-dd hh:mm:ss
     */
    private String orderDateTime;
    /**
     * 送货地址，联系地址
     */
    private String contactAddress;
    /**
     * 联系人姓名
     */
    private String contactName;
    /**
     * 联系人电话
     */
    private String contactTel;
    /**
     * 商品列表(多条)
     */
    private List<ProductEntity> items;


    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(String payMethod) {
        this.payMethod = payMethod;
    }

    public String getCustomerNumber() {
        return customerNumber;
    }

    public void setCustomerNumber(String customerNumber) {
        this.customerNumber = customerNumber;
    }

    public BigDecimal getShippingFee() {
        return shippingFee;
    }

    public void setShippingFee(BigDecimal shippingFee) {
        this.shippingFee = shippingFee;
    }

    public String getOrderRemark() {
        return orderRemark;
    }

    public void setOrderRemark(String orderRemark) {
        this.orderRemark = orderRemark;
    }

    public String getOrderDateTime() {
        return orderDateTime;
    }

    public void setOrderDateTime(String orderDateTime) {
        this.orderDateTime = orderDateTime;
    }

    public String getContactAddress() {
        return contactAddress;
    }

    public void setContactAddress(String contactAddress) {
        this.contactAddress = contactAddress;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getContactTel() {
        return contactTel;
    }

    public void setContactTel(String contactTel) {
        this.contactTel = contactTel;
    }

    public List<ProductEntity> getItems() {
        return items;
    }

    public void setItems(List<ProductEntity> items) {
        this.items = items;
    }
}
